package bak.validation;

import horncomb.bpm.BpmException;
import horncomb.bpm.task.core.TaskInstance;

/**
 * 状态变化异常
 * @author Daniel
 */
public class TaskSubmitException extends BpmException {
	private static final long serialVersionUID = 5810403418809149568L;
	private TaskInstance taskInstance;

	public TaskSubmitException(String msg, TaskInstance taskInstance) {
		super(msg);
		this.taskInstance = taskInstance;
	}

	public TaskSubmitException(String msg, TaskInstance taskInstance,
			Throwable cause) {
		super(msg, cause);
		this.taskInstance = taskInstance;
	}

	/**
	 * @return the taskInstance
	 */
	public TaskInstance getTaskInstance() {
		return taskInstance;
	}
}
